package Structural.Wrapper.increase;

//具体装饰角色
public class ConcreteDecorator extends Decorator
{
    public ConcreteDecorator(Component component)
    {
        super(component);
    }

//    重写父类的operation方法并且调用父类的动作，扩展操作
    @Override
    public void operation()
    {
        super.operation();
        addedFunction();
    }
    public void addedFunction()
    {
        System.out.println("为具体构件角色增加额外的功能addedFunction()");
    }
}
